package com.fzkj.shejimoshi.adapter2.adapter;

import com.fzkj.shejimoshi.adapter2.motor.Motor;
import com.fzkj.shejimoshi.adapter2.motor.OpticalMotor;

/**
 * @DESCRIPTION: TODO 光能发动机驱动
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/13 15:40
 */
public class OpticalAdapter implements Motor {

    private OpticalMotor motor;
    public OpticalAdapter(OpticalMotor motor){
        this.motor = motor;
    }

    @Override
    public void drive() {
        motor.drive();
    }
}
